import java.util.ArrayList;
import java.util.Scanner;


public class ApplyGravity implements Build{
  
    @Override
   public final void build(Scanner line, Simulation sim) {
    ArrayList<Mass> myMassList=sim.getMassList();
    double degree = line.nextDouble();
    double magnitude = line.nextDouble();
    for(Mass m:myMassList){
    m.getGravity(degree, magnitude);    
    }
    }
    

}
